package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.exception.LogicException;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface IEmployeeService {
    void deleteByPrimaryKey(Long id);

    void insert(Employee record, Long[] ids);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void updateByPrimaryKey(Employee record, Long[] ids);

    PageInfo<Employee> query(QueryObject qo);

    Employee login(String username, String password) throws LogicException;

    void batchDelete(Long[] ids);

    Employee selectByname(String name, Long id);

    Workbook exportXls();

    void improtXls(MultipartFile file);
}
